package com.sdppf.dao.impl;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.sdppf.dao.RecordCountHqlDao;

public class RecordCountHqlDaoImpl extends HibernateDaoSupport implements RecordCountHqlDao {

	@Override
	public int GetCount(String hql) {
		String result  = this.getHibernateTemplate().find(hql).get(0).toString();
		return Integer.parseInt(result);
	}

}
